<template>
  <div>
    <LikeDog 
      v-for="(item,index) in list" :key="index"
      :Url="item.dogImgUrl"
      :name="item.dogName"
    
    />  

  </div>
</template>

<script>
import LikeDog from './components/作业2(LikeDog子).vue'
export default {
  name: 'MyVueHomeworkApp',
  components: {
     LikeDog
  },
  data() {
    return {
      list:[
    {
        dogImgUrl: "https://img0.baidu.com/it/u=3430803146,1394012054&fm=253&fmt=auto&app=138&f=PNG?w=500&h=500",
        dogName: "博美",
    },
    {
        dogImgUrl:"https://img1.baidu.com/it/u=874896598,3383874951&fm=253&fmt=auto&app=138&f=JPEG?w=305&h=411",
        dogName: "泰迪",
    },
    {
        dogImgUrl:"https://img1.baidu.com/it/u=2837433060,3278633272&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500",
        dogName: "金毛",
    },
    {
        dogImgUrl:"https://img1.baidu.com/it/u=3576405599,3435531833&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=553",
        dogName: "哈士奇",
    },
    {
        dogImgUrl:"https://img2.baidu.com/it/u=3152583653,2977034831&fm=253&fmt=auto&app=120&f=JPEG?w=888&h=500",
        dogName: "阿拉斯加",
    },
    {
        dogImgUrl:"https://img1.baidu.com/it/u=2319667896,2332863488&fm=253&fmt=auto&app=138&f=JPG?w=500&h=889",
        dogName: "萨摩耶",
    },
]
    }
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>